<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
	<title>Web 2.0 - Battleship Board</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">


	
	<script type="text/javascript">
function() drawGrid {
		var y, x;
		var u_out = "";
		var e_out = "";
		for (y = 0; y < Game.BOARD_HEIGHT; y++) {
			for (x = 0; x < Game.BOARD_WIDTH; x++) {
				u_out = u_out + '<a href="javascript:void(0);"><img border="0" name="p_' + y + '_' + x + '" id="p_' + y + '_' + x + '" alt="p_' + y + '_' + x + '" src="images/battle/empty.gif" width="32" height="32" class="' + Game.EMPTY + '"><\/a>';
				e_out = e_out + '<a href="javascript: Game.doShoot(' + y + ', ' + x + ');"><img border="0" name="e_' + y + '_' + x + '" id="e_' + y + '_' + x + '" alt="e_' + y + '_' + x + '" src="images/battle/empty.gif" width="32" height="32"><\/a>';
			}
		}

		$('your_area').innerHTML = u_out + "<br>";
		$('enemy_area').innerHTML = e_out + "<br>";
		
	
	}
</script>
</body>
</html>